package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsProjectSub;
import org.jeecg.modules.ws.mapper.WsProjectSubMapper;
import org.jeecg.modules.ws.service.IWsProjectSubService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collections;
import java.util.List;

/**
 * @Description: 子项目工程
 * @Author: jeecg-boot
 * @Date:   2025-03-31
 * @Version: V1.0
 */
@Service
public class WsProjectSubServiceImpl extends ServiceImpl<WsProjectSubMapper, WsProjectSub> implements IWsProjectSubService {

    @Override
    public List<WsProjectSub> queryByProjectCode(String projectCode) {
        LambdaQueryWrapper<WsProjectSub> query = Wrappers.lambdaQuery(WsProjectSub.class);
        query.eq(WsProjectSub::getProjectCode,projectCode);
        return list(query);
    }
}
